﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Data.Tables
{
    [Table("RecurringHoliday")]
    public class RecurringHoliday : RecurringHolidayFields
    { }

    public class RecurringHolidayQuery : RecurringHolidayFields
    {
        [Display(Name = "Holiday Type")]
        public string HolidayTypeName { get; set; }

        [Display(Name = "Is Active")]
        public string IsActiveYesNo { get; set; }
    }

    public class RecurringHolidayFields
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Display(Name = "Month")]
        public int Month { get; set; }

        [Display(Name = "Day")]
        public int Day { get; set; }

        [Required]
        [Display(Name = "Description")]
        public string Description { get; set; }

        [Display(Name = "Holiday Type")]
        public int HolidayTypeID { get; set; }

        [Display(Name = "Is Active")]
        public bool IsActive { get; set; }
    }

}